/**   
 * @Title: BaseEntity.java 
 * @Package com.risetek.core.entity 
 * @Description: 实体基类
 * @author liping.action@gmail.com
 * @date 2013-3-28 下午2:34:14 
 * @version V1.0   
 */
package com.risetek.tft.entity;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: BaseEntity
 * @Description: 实体基类
 * @author liping.action@gmail.com
 * @date 2013-3-28 下午2:34:14
 * 
 */
@MappedSuperclass
public class BaseEntity implements Serializable {

	private static final long serialVersionUID = -2580383184777265687L;
	private String id;

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
